package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.CmsSupplier;
import com.project.pojo.dto.SupplierDTO;
import com.project.pojo.model.SelectSupplierModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsSupplierMapper extends BaseMapper<CmsSupplier> {

    /**
     * 分页查询供应商
     * @param page
     * @param selectSupplierModel
     * @return
     */
    IPage<SupplierDTO> selectSupplier(Page<SupplierDTO> page, @Param("model") SelectSupplierModel selectSupplierModel);

    /**
     * 按条件查询供应商列表
     * @param selectSupplierModel
     * @return
     */
    List<SupplierDTO> selectSupplier(@Param("model") SelectSupplierModel selectSupplierModel);


}